package com.lagou.pojo;

import java.util.List;
import java.util.Map;

/**
 * @Authther: mrwu
 * @date:2021/3/7-03
 * @Description:com.lagou.pojo
 */
public class ResultMap {
    //需要保存 result collection 使用时发现不方便取
     private List<ResultMapping> results;
     private Map<String,ResultMapping> resultMappingMap;
     //resulttype 同此ID进行对应
     private String id;
     //返回的外层类型
     private String type;
     //对应collection下的对象类型
     private String javaType;
     //assocition 下的对象类型
     private String ofType;

    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

    public String getOfType() {
        return ofType;
    }

    public void setOfType(String ofType) {
        this.ofType = ofType;
    }

    public Map<String, ResultMapping> getResultMappingMap() {
        return resultMappingMap;
    }

    public void setResultMappingMap(Map<String, ResultMapping> resultMappingMap) {
        this.resultMappingMap = resultMappingMap;
    }

    public List<ResultMapping> getResults() {
        return results;
    }

    public void setResults(List<ResultMapping> results) {
        this.results = results;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
